import random

s = 0
'''
d={ key:value for item in range }
d={ key:value for key,value in zip(lst1,lst2)}


'''

# d={ key:value for item in range }
d = {item: random.randint(1, 100) for item in range(4)}
print(d)

# 使用映射的方式创建数组
# 创建两个列表
lst1 = [1001, 1002, 1003]
lst2 = ['张三', '李四', '王五']
d1 = {key: value for key, value in zip(lst1, lst2)}
print(d1)
